<div class="f_dialog_item white">
	<div class="f_dialog_item_l small">
		<div class="u_buzz_item_l">
			<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>Yii::app()->user->id));?>">
				<?php echo $this->material_image('', Yii::app()->user->getState('avatar'), '37', 'photos/'. Yii::app()->user->id . '/' . 0); ?>
			</a>
		</div>
		<div class="u_buzz_item_r">
			<div class="u_buzz_name">
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>Yii::app()->user->id));?>">Я</a>
				<p class="u_buzz_date">0 мин. назад</p>							
			</div>
		</div>
	</div>
	<div class="f_dialog_item_r">
		<p><?php echo nl2br(CHtml::encode(rawurldecode($message['text']))); ?></p>
		<div class="commentPhoto">
			<?php $imgClass = count($message['images'])>1 ? (count($message['images'])%2==0 ? 'many2' : 'many3')  : 'one' ;?>
			<?php foreach($message['images'] as $image){ ?>
				<div class="commentPhotoItem <?php echo $imgClass;?>">
					<a href="<?php echo Yii::app()->createUrl('albums/photo', array('id'=>$image->id));?>" class="photoBg">
						<?php echo $this->material_image($image->album_id, $image->name, '270', 'photos/'. Yii::app()->user->id . '/' . $image->album_id); ?>
					</a>
				</div> 
			<?php } ?>
		</div>		
		
		<div class="commentVideo">
			<?php foreach($message['videos'] as $video){ ?>
				<div class="commentVideoItem"><?php echo $video->code; ?></div>
			<?php } ?>	
		</div>
		
		<div class="commentMusic">
			<div class="u_audio_player profileMusic">
				<?php foreach($message['musics'] as $music){ ?>
					<div class="u_audio__item">
						<div class="play_btn"></div>
						<div class="u_audio_track">
							<?php if($music->artist){ ?>
								<a href="#" data-src="<?php echo '/upload/audio/'.$music->music_info->file;?>" class="u_audio__autor"><?php echo $music->artist;?></a>
								<span> &mdash; </span>
							<?php } ?>
							<a href="#" data-src="<?php echo '/upload/audio/'.$music->music_info->file;?>" class="u_audio__name"><?php echo $music->name;?></a>
						</div>
					</div>						
				<?php } ?>	
			</div>	
		</div>			
		
		<div class="u_buzz_link_block hidden">
			<a href="<?php echo Yii::app()->createAbsoluteUrl("messages/deletemessage", array('message_id'=>$message['message_id'])); ?>" onclick="return false;" class="u_buzz_link l2 delete_message">
				<div class="user_action_item_tooltip c hidden"><div class="cc">Удалить сообщение</div></div>
			</a>
		</div>
	</div>
</div>